    <div class="tempDiv" style="position:absolute;overflow:hidden;width:100%;height:100%;top:-1px">
    <!--jquery validator显示错误信息的容器 -->
    <div class="serverErrorContainer" style="position:relative;">
        <div class="serverError">
        <ol>

        </ol>
        </div>
    
        <div class="container">
            <div class="searchButtonBox handleDiv" onclick="displayTable('handleDiv');return false;">
            	<a href='javascript:void(0);' onclick="return false;" class="button switchOpen"  tabindex="-1" >
    			<div style="border:1px solid #96d0d2;border-bottom:0px;position:relative;float:right;cursor:pointer;">
    			<img id="handleDiv" src="./../theme/default/images/main/search/search_switch_open_normal.png" style="position:absolute;top:6px">
    			<input type="button" style="margin-top:0px;width:16px;">
    			</div>
    			</a>
            </div>
            <div id="handleDiv_child" class="errorDIv" divAttend="attend">
                <ol>
                </ol>
            </div>
        </div>
    </div>
    <!-- end -->
    <form class="cmxform" id="form1" name="form1" method="post">
    <div class="content_c" style="overflow-y:auto;overflow-x:hidden;position:relative;">
    
    <div id="hiddenDiv">
    <input type="hidden" id="functionId" name="function.id">
     <input type="hidden" id="isInnerEdit" name="isInnerEdit" <#if isInnerEdit??>value="${isInnerEdit}"</#if>>
    <input type="hidden" id="taskStatus" name="taskStatus" <#if businessInstance?? && businessInstance.status?? && businessInstance.status.id??>value="${businessInstance.status.id}"</#if>>
    <input type="hidden" id="formId" name="form.id" <#if form?? && form.id??>value="${form.id}"</#if>>
    <input type="hidden" id="businessInstanceId" name="businessInstance.id" <#if businessInstance?? && businessInstance.id??>value="${businessInstance.id}"</#if>>
    <input type="hidden" id="businessInstanceIds" name="businessInstance.ids" <#if businessInstance?? && businessInstance.ids??>value="${businessInstance.ids}"</#if>>
   	<#if businessInstance?? && businessInstance.parentInstance?? && (!businessInstance.id?? || (businessProcess.businessObj.isChild?? && businessProcess.businessObj.isChild=="1"))>
    <input type="hidden" id="parentInstanceId" name="parentInstance.id" value="${businessInstance.parentInstance.id}">
    </#if>
    <#if fieldMap??>
    	<#list fieldMap?keys as key>
    		<#if fieldMap[key].field??>
    		<input type=hidden name="fieldMap['${key}'].field.id" <#if fieldMap[key].field.id??> value="${fieldMap[key].field.id}"</#if>>
			</#if>
			<input type=hidden id="${key}" name="fieldMap['${key}'].value" <#if fieldMap[key].value??> value="${fieldMap[key].value}"</#if>></input>
			<input type=hidden id="${key}" name="fieldMap['${key}'].entityId" <#if fieldMap[key].entityId??> value="${fieldMap[key].entityId}"</#if>></input>
    	</#list>
    </#if>
    </div>
    
		<#assign equalTable="1">
    	<#list group_list as item>
    		<#assign showtable="0">
            
        	<#if item.group?? && item.content?? && item.group.isShowTitle?default('1')=='1'>
        	<#if item.group.isShowTitle?default('1')=='1' && equalTable == '0'>
            </tbody>
            </table>
            </td></tr></table>
            </#if>
        	<#assign equalTable="1">
        	<table cellspacing="0" cellpadding="0" width="100%" style="border:1px solid #c2e2eb;">
	    	<tbody>
            <tr class="listviewHeader">
                <th colspan="6">
                	<div id="showYearFeeSpan" class="tableExtend tableOpen" style="position:relative;left:10px;"></div>
                	<div style="position:relative;float:left;line-height:15px;left:10px;top:2px">
                		<span style="margin-left:10px;">${item.group.name}</span>
                	</div>
                </th>
            </tr>
            </tbody>
            </table>
            </#if>

            <#if showtable?? && showtable == "0" && !(equalTable == '0')>
            <#assign equalTable="0">
            <table width="100%" cellspacing="0" cellpadding="0" style="padding-top:10px;padding-bottom: 10px;padding-left:10px;padding-right:20px;">
			<tbody><tr><td>
			<table cellspacing="0" cellpadding="0" width="100%" class="listviewTable">
	    	<tbody>
	    	<tr height="0" style="border:0px">
			    <td width="8%" style="border:0px"></td>
			    <td width="25%" style="border:0px"></td>
			    <td width="8%" style="border:0px"></td>
			    <td width="25%" style="border:0px"></td>
				<td width="8%" style="border:0px"></td>
				<td width="25%" style="border:0px"></td>
			</tr>
			</#if>
			
            ${item.content?default('')}
            
            <#if item_has_next>
            <#else>
            <#assign equalTable="1">
            </tbody>
            </table>
            </td></tr></table>
            </#if>
            
    	</#list>
    </div>
</form>
<div class="content_s layout_div" style="height:46px;bottom:0px;width:100%;position:absolute">
        <div class="buttonBox" style="margin-top:10px">
        <#if readonly?? && readonly=="1" && function??>
    		<a href="#" class="button" tabindex="-1">
        	<input id="btnReadOnlyToEdit" type="button"  class="button" value="编辑" onclick="processEditFunction('${function.id}')"/>&nbsp;&nbsp;
        </a>
    		</#if>
        <#list function_list as func>
            <#assign show="0">
            <#list feature_list as feature>
                <#if func.function.name==feature.code>
                    <#if businessInstance.procDefId?? && businessInstance.status??>
                        <#if func.procDefId?? && func.status?? && func.procDefId==businessInstance.procDefId && func.status==businessInstance.status.id>
                            <#assign show="1">
                        </#if>
                    <#else>
                        <#assign show="1">
                    </#if>
                </#if>
            </#list>
            <#if isInnerEdit?? && isInnerEdit=="1" && func.function.displayName?index_of("保存")==-1>
            	<#assign show="0">
            </#if>    
            <#if show?? && show=="1">
	            <#if readonly?? && readonly=="1">
			        	<#if func?? && func.function?? && func.function.name?? && (func.function.displayName=="批量编辑" || func.function.displayName?index_of("导出")>=0  || func.function.displayName=="返回")>
				        	
						     <#if func?? && func.function.displayName != "批量编辑">
						        	<a href="#" class="button" groupIds="<#if func.allowGroupIds??>${func.allowGroupIds}</#if>" tabindex="-1">
							        <input id="btn${func.function.name}" type="button"  class="button" value="<#if func.function?? && func.function.displayName??>${func.function.displayName}</#if>" onclick="process${form.id}('${func.function.id}','<#if func.function?? && func.function.type??>${func.function.type}</#if>',<#if func.function.messageType??>'${func.function.messageType}'<#else>'0'</#if>,<#if func.function.message??>'${func.function.message}'<#else>''</#if>,<#if func.function.clearSession??>'${func.function.clearSession}'<#else>'0'</#if>,<#if func.function.logicConfirmMessage??>'${func.function.logicConfirmMessage}'<#else>''</#if>,<#if func.function.logicBranchFunction??>'${func.function.logicBranchFunction.id}'<#else>''</#if>,<#if func.function.singleValidate??>'${func.function.singleValidate}'<#else>'0'</#if>)"/>&nbsp;&nbsp;
							        </a>
					        </#if>
			        	</#if>
			        <#else>
				        <a href="#" class="button" groupIds="<#if func.allowGroupIds??>${func.allowGroupIds}</#if>" tabindex="-1">
				        <input id="btn${func.function.name}" type="button"  class="button" value="<#if func.function?? && func.function.displayName??>${func.function.displayName}</#if>" onclick="process${form.id}('${func.function.id}','<#if func.function?? && func.function.type??>${func.function.type}</#if>',<#if func.function.messageType??>'${func.function.messageType}'<#else>'0'</#if>,<#if func.function.message??>'${func.function.message}'<#else>''</#if>,<#if func.function.clearSession??>'${func.function.clearSession}'<#else>'0'</#if>,<#if func.function.logicConfirmMessage??>'${func.function.logicConfirmMessage}'<#else>''</#if>,<#if func.function.logicBranchFunction??>'${func.function.logicBranchFunction.id}'<#else>''</#if>,<#if func.function.singleValidate??>'${func.function.singleValidate}'<#else>'0'</#if>)"/>&nbsp;&nbsp;
				        </a>
			        </#if>
            </#if>
         </#list>
         
         <#if common_func_list??>
         <#list common_func_list as func>
            <#assign show="0">
            <#list feature_list as feature>
                <#if func.function.name==feature.code>
                    <#assign show="1">
                </#if>
            </#list>
            <#if isInnerEdit?? && isInnerEdit=="1" && func.function.displayName?index_of("保存")==-1>
            	<#assign show="0">
            </#if>
            <#if show?? && show=="1">
							<#if readonly?? && readonly=="1">
			        	<#if func?? && func.function?? && func.function.name?? && (func.function.displayName=="批量编辑" ||  func.function.displayName?index_of("导出")>=0 || func.function.displayName=="返回")>
				        	<a href="#" class="button" groupIds="<#if func.allowGroupIds??>${func.allowGroupIds}</#if>" tabindex="-1">
					        <input id="btn${func.function.name}" type="button"  class="button" value="<#if func.function?? && func.function.displayName??>${func.function.displayName}</#if>" onclick="process${form.id}('${func.function.id}','<#if func.function?? && func.function.type??>${func.function.type}</#if>',<#if func.function.messageType??>'${func.function.messageType}'<#else>'0'</#if>,<#if func.function.message??>'${func.function.message}'<#else>''</#if>,<#if func.function.clearSession??>'${func.function.clearSession}'<#else>'0'</#if>,<#if func.function.logicConfirmMessage??>'${func.function.logicConfirmMessage}'<#else>''</#if>,<#if func.function.logicBranchFunction??>'${func.function.logicBranchFunction.id}'<#else>''</#if>,<#if func.function.singleValidate??>'${func.function.singleValidate}'<#else>'0'</#if>)"/>&nbsp;&nbsp;
					        </a>
			        	</#if>
			        <#else>
			        
			          	<#if func?? && func.function.displayName != "批量编辑">
				        <a href="#" class="button" groupIds="<#if func.allowGroupIds??>${func.allowGroupIds}</#if>" tabindex="-1">
				        <input id="btn${func.function.name}" type="button"  class="button" value="<#if func.function?? && func.function.displayName??>${func.function.displayName}</#if>" onclick="process${form.id}('${func.function.id}','<#if func.function?? && func.function.type??>${func.function.type}</#if>',<#if func.function.messageType??>'${func.function.messageType}'<#else>'0'</#if>,<#if func.function.message??>'${func.function.message}'<#else>''</#if>,<#if func.function.clearSession??>'${func.function.clearSession}'<#else>'0'</#if>,<#if func.function.logicConfirmMessage??>'${func.function.logicConfirmMessage}'<#else>''</#if>,<#if func.function.logicBranchFunction??>'${func.function.logicBranchFunction.id}'<#else>''</#if>,<#if func.function.singleValidate??>'${func.function.singleValidate}'<#else>'0'</#if>)"/>&nbsp;&nbsp;
				        </a>
				        </#if>
			        </#if>
            </#if>
         </#list>
         </#if>
        </div>
<div class="main_center_south_corner"></div>
</div>
</div>
<script type="text/javascript" src="./../script/page/config/formvalidate.js"></script>
<script type="text/javascript" src="./../script/page/config/tdqs.validate.js"></script>
<script language="javascript">

function downLoadFunction(id,url) {
    if(url.indexOf('?')==-1) {
        url = url + '?';
    }
    var url = TDQS.CONTEXT_PATH+url+"&instanceId="+id+"&date="+new Date().toLocaleString();
    var frame = document.createElement("iframe");
    frame.src = url;
    frame.style.display = "none";
    document.body.appendChild(frame);
}


$(function(){
    //layout();
    if(typeof(parent.addTabPage) != 'undefined' && $('#isInnerEdit').val()=='0') {
    	$('#isInnerEdit').val('1');
    	$('input[type="button"]','.buttonBox').each(function(){
    		if(this.value!='保存' && this.value!='编辑') {
    			$(this).hide();
    		}
    	});
    }
    $("#form1 .tableExtend").each(function(i){
    	$(this).click(function(){
    		var objHeard = $(this);
			var currentTable = $($(this).parents("table").get(0));
			var operTable = $(currentTable).next("table");
    		
    		if($(objHeard).hasClass("tableOpen")){
    			$(operTable).hide();
    			$(objHeard).removeClass("tableOpen");
    			$(objHeard).addClass("tableClose");
    		}else{
    			$(operTable).show();
    			$(objHeard).removeClass("tableClose");
				$(objHeard).addClass("tableOpen");
    		}
    		})
    	});
    $('table[tabletype="datagrid"]').each(function(){
    	eval('gotoGrid'+$(this).attr('field')+'()');
    });
    contentLayout();
    <#if isHideButton?? && isHideButton=='1'>
    	$('a','#form1').each(function(){
    		$(this).removeAttr('onclick');
    		$(this).removeAttr('href');
    		$(this).attr('href','javascript:void(0);');
    	});
    	$('.content_s').hide();
    </#if>
	//alert($(".content_c")[0].scrollHeight+"**"+$(".content_c").height()+"***"+$(".content_c")[0].offsetHeight+"***"+window.document.body.clientHeight+"****"+$(".content_c")[0].scrollTop);
});

$(window).resize(function(){
	$(".tempDiv").css("height",window.document.body.clientHeight);
	$(".content_c").css("height",window.document.body.clientHeight-$(".serverErrorContainer").height()-46);
	if($.browser.msie&&($.browser.version == "6.0")){
		$(".content_c").css("width",window.document.body.clientWidth-5);
	}
	$(".serverErrorContainer").css("width",window.document.body.clientWidth);
	var obj=$(".content_c")[0];
	/*if($.browser.msie&&($.browser.version == "6.0" || $.browser.version == "7.0")){
		if(obj.scrollHeight>obj.clientHeight||obj.offsetHeight>obj.clientHeight){ 
		    $(".content_c>table").each(function(){
		    	if($(this).hasClass("listviewTable")){
	    			$(this).css("width",window.document.body.clientWidth - 42);
	    		}else{
	    			$(this).css("width",window.document.body.clientWidth - 19);
		    	}
		    })
	    }
    }*/
});
//var obj=document.getElementById("showDiv");   
//if(obj.scrollHeight>obj.clientHeight||obj.offsetHeight>obj.clientHeight){ 

function contentLayout(){
	$(".tempDiv").css("height",window.document.body.clientHeight);
	$(".content_c").css("height",window.document.body.clientHeight-$(".serverErrorContainer").height()-46);
	if($.browser.msie&&($.browser.version == "6.0")){
		$(".content_c").css("width",window.document.body.clientWidth-5);
	}
	//$(".listviewTable").css("width",window.document.body.clientWidth);
	//$(".content_c>.listviewTable").each(function(){
	
	//	$(this).width(window.document.body.clientWidth);
	//})
	$(".serverErrorContainer").css("width",window.document.body.clientWidth);
	
	var obj=$(".content_c")[0];   
	/*if($.browser.msie&&($.browser.version == "6.0" || $.browser.version == "7.0")){
		if(obj.scrollHeight>obj.clientHeight||obj.offsetHeight>obj.clientHeight){ 
		    $(".content_c>table").each(function(){
		    	if($(this).hasClass("listviewTable")){
	    			$(this).css("width",window.document.body.clientWidth - 42);
	    		}else{
	    			$(this).css("width",window.document.body.clientWidth - 19);
		    	}
		    })
    	}
	
	}*/
	
}
function layout(){                          
    var toggle_we        = '<div class="btnToggler_we"></div>'
    , toggle_w        = '<div class="btnToggler_w"></div>'
    ;
      $('.tempDiv').layout({
         center__paneSelector:   ".center_content"         
    ,    south__paneSelector:    ".main_center_south_corner"
    ,    south__size:    10
    ,    south__spacing_open:    0
    ,    south__spacing_close:    0
    ,    south__closable:    false
    ,    south__resizable:    false
    });

    $(".main_center_south_corner").css({overflow:"hidden"});
    $(".center_content").css({"overflow-x":"auto"});
    $(".center_content").css({"overflow-y":"auto"});
    
    var contentLayout = $('div.center_content').layout({   
    center__paneSelector:    ".content_c"
    ,    south__paneSelector:    ".content_s"
    ,    south__size:    46
    ,    south__spacing_open:    0
    ,    south__spacing_close:    0
    ,    south__closable:    false
    ,    south__resizable:    false                   
                                                   
    });
    $(".content_s").css({overflow:"auto"});
    //$(".content_s").css({position:"fixed"});
    //var content_s_height = window.document.body.clientHeight;
   // alert(content_s_height);
   // $(".content_s").css({"padding-top":content_s_height+'px'});
}

function processEditFunction(funcId) {
    disabledAllButton();
	var url = TDQS.CONTEXT_PATH+"business/process?tdqssid="+TDQS.SESSION_ID+"&function.id="+funcId+"&businessInstance.id="+$('#businessInstanceId').val()+"&taskStatus="+$('#taskStatus').val()+"&form.id="+$('#formId').val()+"&isInnerEdit="+$('#isInnerEdit').val();
	url += "&date="+new Date().toLocaleString();
	document.location.href = url;
}

var validator;
var origFuncId;
function process${form.id}(funcId,type,messageType,message,clearSession,logicMessage,logicBranchFuncId) {
  	 var validteType =type;
  	 left_current_page = true;
  	 if(type =='5'){
  		 type ='3';
  	 }
  	
    if(validator && type == '3') {
			validator.type =validteType;
			if(!validator.form()) {
				//HotFirstErrorMessage();
				left_current_page = false;
				return false;
			}
	 }
		
    var url = TDQS.CONTEXT_PATH+'business/process';
    if(!message||message=='') {
    	message = '确定要执行操作吗？';
    }
          
    if(messageType && messageType=='1') {
	
		jConfirm(message, '确认对话框 ', function(r) {
			if(r){
				if(logicMessage && logicMessage!='' && logicBranchFuncId && logicBranchFuncId!='') {
					jYesOrNoConfirm(logicMessage, '确认对话框 ', function(r) {
						if(!r) {
							funcId = logicBranchFuncId;
						}
						if(type && type=='3') {
                            disabledAllButton();
							block($('.tempDiv'),"数据提交中，请稍候...");
	        		if(clearSession=='1') {
				    	url += '?clearSession='+clearSession+'&tdqssid='+TDQS.SESSION_ID;
				    }
	                ${"$('#functionId')"}.val(funcId);
	                ${"$('#form1')"}.attr('action',url);
	                ${"$('#form1')"}.submit();
	            } else if(type && type=='6') {
			    	${"$('#functionId')"}.val(funcId);
			    	exportData();
				} else {
                    disabledAllButton();
	                url += "?tdqssid="+TDQS.SESSION_ID+"&function.id="+funcId+"&businessInstance.id="+$('#businessInstanceId').val()+"&taskStatus="+$('#taskStatus').val()+"&form.id="+$('#formId').val();
	                <#if businessInstance?? && businessInstance.parentInstance?? && (!businessInstance.id?? || (businessProcess.businessObj.isChild?? && businessProcess.businessObj.isChild=="1"))>
	                url += "&parentInstance.id="+$('#parentInstanceId').val();
	                </#if>
	                if(clearSession=='1') {
				    	url += '&clearSession='+clearSession;
				    }
	                url += "&date="+new Date().toLocaleString();
	                document.location.href = url;
	            }
					});
				} else {
	        	if(type && type=='3') {
                    disabledAllButton();
	        		block($('.tempDiv'),"数据提交中，请稍候...");
	        		if(clearSession=='1') {
				    	url += '?clearSession='+clearSession+'&tdqssid='+TDQS.SESSION_ID;
				    }
	                ${"$('#functionId')"}.val(funcId);
	                ${"$('#form1')"}.attr('action',url);
	                ${"$('#form1')"}.submit();
	            } else if(type && type=='6') {
			    	${"$('#functionId')"}.val(funcId);
			    	left_current_page = false;
			    	exportData();
				} else {
                    disabledAllButton();
	                url += "?tdqssid="+TDQS.SESSION_ID+"&function.id="+funcId+"&businessInstance.id="+$('#businessInstanceId').val()+"&taskStatus="+$('#taskStatus').val()+"&form.id="+$('#formId').val();
	                <#if businessInstance?? && businessInstance.parentInstance?? && (!businessInstance.id?? || (businessProcess.businessObj.isChild?? && businessProcess.businessObj.isChild=="1"))>
	                url += "&parentInstance.id="+$('#parentInstanceId').val();
	                </#if>
	                if(clearSession=='1') {
				    	url += '&clearSession='+clearSession;
				    }
	                url += "&date="+new Date().toLocaleString();
	                document.location.href = url;
	            } 
	          }
	        }else{
	        	left_current_page = false;
	            return false;
	        }
		});
    } else {
        if(type && type=='3') {
            disabledAllButton();
        	block($('.tempDiv'),"数据提交中，请稍候...");
        	if(clearSession=='1') {
		    	url += '?clearSession='+clearSession+'&tdqssid='+TDQS.SESSION_ID;
		    }
            ${"$('#functionId')"}.val(funcId);
            ${"$('#form1')"}.attr('action',url);
            ${"$('#form1')"}.submit();
        } else if(type && type=='6') {
			    	${"$('#functionId')"}.val(funcId);
			    	left_current_page = false;
			    	exportData();
		} else if(type && type=='4') {
			$('#functionId').val(origFuncId);
			if(serializeformData == $("#form1").serialize()){
                disabledAllButton();
				$('#functionId').val(funcId);
				url += "?tdqssid="+TDQS.SESSION_ID+"&function.id="+funcId+"&businessInstance.id="+$('#businessInstanceId').val()+"&taskStatus="+$('#taskStatus').val()+"&form.id="+$('#formId').val();
                <#if businessInstance?? && businessInstance.parentInstance?? && (!businessInstance.id?? || (businessProcess.businessObj.isChild?? && businessProcess.businessObj.isChild=="1"))>
                url += "&parentInstance.id="+$('#parentInstanceId').val();
                </#if>
                if(clearSession=='1') {
			    	url += '&clearSession='+clearSession;
			    }
                url += "&date="+new Date().toLocaleString();
				document.location.href = url;
			}else{				
				$('#functionId').val(funcId);
				jConfirm('当前页面内容已有修改，确认要返回吗？', '确认对话框 ', function(r) {
					if(r){
                        disabledAllButton();
						url += "?tdqssid="+TDQS.SESSION_ID+"&function.id="+funcId+"&businessInstance.id="+$('#businessInstanceId').val()+"&taskStatus="+$('#taskStatus').val()+"&form.id="+$('#formId').val();
                        <#if businessInstance?? && businessInstance.parentInstance?? && (!businessInstance.id?? || (businessProcess.businessObj.isChild?? && businessProcess.businessObj.isChild=="1"))>
                        url += "&parentInstance.id="+$('#parentInstanceId').val();
                        </#if>
                        if(clearSession=='1') {
					    	url += '&clearSession='+clearSession;
					    }
                        url += "&date="+new Date().toLocaleString();
						document.location.href = url;						
					}else{
						left_current_page = false;
						return false;
					}
				});
			} 
        } else {
            disabledAllButton();
            url += "?tdqssid="+TDQS.SESSION_ID+"&function.id="+funcId+"&businessInstance.id="+$('#businessInstanceId').val()+"&taskStatus="+$('#taskStatus').val()+"&form.id="+$('#formId').val();
            <#if businessInstance?? && businessInstance.parentInstance?? && (!businessInstance.id?? || (businessProcess.businessObj.isChild?? && businessProcess.businessObj.isChild=="1"))>
            url += "&parentInstance.id="+$('#parentInstanceId').val();
            </#if>
            if(clearSession=='1') {
		    	url += '&clearSession='+clearSession;
		    }
            url += "&date="+new Date().toLocaleString();
            document.location.href = url;
        }
    }
}

function exportData() {
	$('#exportFrame').remove();
	var frame = document.createElement('iframe');
	frame.id='exportFrame';
	frame.name='exportFrame';
	frame.style.display='none';
	document.body.appendChild(frame);
	var doc = document.getElementById('exportFrame').contentWindow.document;
	doc.write('<html><body></body></html>');
	var form = doc.createElement("form");
	form.action=TDQS.CONTEXT_PATH+'business/process?tdqssid='+TDQS.SESSION_ID;
	$(form).attr('method','post');
	var div = doc.createElement("div");
	div.style.display = "none";
	div.innerHTML=$('#hiddenDiv').html();
	$(form).append(div);
	doc.body.appendChild(form);
	form.submit();
}

<#if form.validation??>
    ${form.validation}
</#if>
<#if form.script??>
    ${form.script}
</#if>

$(function() {
serializeformData=$("#form1").serialize();
origFuncId = $('#functionId').val();
});

</script>